From: | Tony Rolfe |
Date: | 21 Sep 99 at 05:12:17 |
Subject: | Function without return |
Is it valid to do something like:
Function.l Fred{a.l}
if a = 1
function return 1
endif
end function
In other words, to have a function which sometimes returns a value and
sometimes doesn't. If this is acceptable, what happens to to the
variable b in the following:
b.l = 3
b = Fred{2}
Does b remain unchanged, does it take some arbitrary value, or what.
I've tried it out and it seems to be OK, but I can't be sure whether
it is valid under all circumstances.
The application is a data entry type program where the user is
changing previously entered values and I want to leave the old values
unchanged if the new value entered is invalid.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie